package com.chixing.day02;
/*
    switch--case 后面的变量类型：
            能够转换成 int 类型：char,byte,short,int
                               Character,Byte,Short,Integer
                               String
                               enum(枚举)
 */
public class SwitchCaseDemo {
    public static void main(String[] args) {
        int day = 2;
        switch(day){
            case 1:
            System.out.println("星期一");break;
            case 2:
            System.out.println("星期二");break;
            case 3:
            System.out.println("星期三");break;
            default:
            System.out.println("无效的数字");break;
        }
    }
}
